<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>    
	<c:url value="member_delete.action" var="toURL">
		<c:param name="currentPage" value="${currentPage}"/>
	</c:url> 
	<script type="text/javascript">
	<!--
		function del(){
			var f = document.writeForm;
			var answer = confirm("삭제 하시겠습니까?");
			if(answer){
				f.action = "member_delete.action";
				f.submit();
			}
		}
	//-->
	</script>
	<h3>뷰</h3>
	<form method="post" name="writeForm">
	<input type="hidden" name="USERID" value="${memberInfo.userid}"/>
	<table border="1" cellspacing="0" width="100%" class="bbs">
	<tbody>
		<tr>
			<th align="center" width="100">아이디</th>
			<td>${memberInfo.userid}</td>
		</tr>
		<tr>
			<th align="center" width="100">이름</th>
			<td>${memberInfo.name}</td>
		</tr>
		<tr>
			<th align="center" width="100">주소</th>
			<td>
				${memberInfo.zipcode}<p>
				${memberInfo.addr1} ${memberInfo.addr2}
			</td>
		</tr>
		<tr>
			<th align="center" width="100">전화번호</th>
			<td>${memberInfo.tel}</td>
		</tr>
		<tr>
			<th align="center" width="100">휴대폰번호</th>
			<td>${memberInfo.hp}</td>
		</tr>
		<tr>
			<th align="center" width="100">이메일</th>
			<td>${memberInfo.email}</td>
		</tr>
		<tr>
			<th align="center" width="100">가입일</th>
			<td>${memberInfo.reg_date}</td>
		</tr>
	</tbody>
	<tfoot>
		<tr>
			<td align="right" colspan="4">
				<input type="button" class="button" value="삭제" onclick="del();"/>
				<input type="button" class="button" value="목록" onclick="location.href="member.action?currentPage=${currentPage}" />
			</td>
		</tr>
	</tfoot>
	</table>
	</form>